﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib;
using System.Data.Common;

namespace CommonDAL
{
    public interface IToBusinessObjectMapper<TIdentity, TUniqueKey, TBusinessEntity>
        where TIdentity : struct
        where TUniqueKey : struct
        where TBusinessEntity : class, IBusinessEntity<TUniqueKey>
    {
        TBusinessEntity Map(TIdentity identity, DbDataReader reader);
    }
}
